#ifndef __GLOBAL_H__
#define __GLOBAL_H__
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

typedef struct Node_ {
	int i;
	struct Node_ *left;   // left child
	struct Node_ *right;  // right child
	struct Node_ *p;      // parent
} NODE;

typedef struct LL_NODE_ {
	NODE *n;
	struct LL_NODE_ *next;
}	LL_NODE;

typedef struct LL_NODE_HEAD_ {
	LL_NODE *level;
	struct LL_NODE_HEAD_ *next_level;
}	LL_NODE_HEAD;

#endif

